package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.SysAppointmentRecord;

/**
 * 预约记录Mapper接口
 *
 * @author ruoyi
 * @date 2025-06-10
 */
public interface SysAppointmentRecordMapper
{
    /**
     * 查询预约记录
     *
     * @param id 预约记录主键
     * @return 预约记录
     */
    public SysAppointmentRecord selectSysAppointmentRecordById(Long id);

    /**
     * 根据客户主键查询预约记录
     * @param customerId
     * @return
     */
    public List<SysAppointmentRecord> selectSysAppointmentRecordByCustomerId(Long customerId);

    /**
     * 查询预约记录列表
     *
     * @param sysAppointmentRecord 预约记录
     * @return 预约记录集合
     */
    public List<SysAppointmentRecord> selectSysAppointmentRecordList(SysAppointmentRecord sysAppointmentRecord);

    /**
     * 新增预约记录
     *
     * @param sysAppointmentRecord 预约记录
     * @return 结果
     */
    public int insertSysAppointmentRecord(SysAppointmentRecord sysAppointmentRecord);

    /**
     * 修改预约记录
     *
     * @param sysAppointmentRecord 预约记录
     * @return 结果
     */
    public int updateSysAppointmentRecord(SysAppointmentRecord sysAppointmentRecord);

    /**
     * 删除预约记录
     *
     * @param id 预约记录主键
     * @return 结果
     */
    public int deleteSysAppointmentRecordById(Long id);

    /**
     * 批量删除预约记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysAppointmentRecordByIds(Long[] ids);
}